package com.dkm.orproject;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;

@ServletComponentScan
@SpringBootApplication
@Configuration
public class OrprojectApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(OrprojectApplication.class, args);
        System.out.println("                   _ooOoo_");
        System.out.println("                  o8888888o");
        System.out.println("                  88\" . \"88");
        System.out.println("                  (| -_- |)");
        System.out.println("                  O\\  =  /O");
        System.out.println("               ____/`---'\\____");
        System.out.println("             .'  \\\\|     |//  `.");
        System.out.println("            /  \\\\|||  :  |||//  \\");
        System.out.println("           /  _||||| -:- |||||-  \\");
        System.out.println("           |   | \\\\\\  -  /// |   |");
        System.out.println("           | \\_|  ''\\---/''  |   |");
        System.out.println("           \\  .-\\__  `-`  ___/-. /");
        System.out.println("         ___`. .'  /--.--\\  `. . __");
        System.out.println("      .\"\" '<  `.___\\_<|>_/___.'  >'\"\".");
        System.out.println("     | | :  `- \\`.;`\\ _ /`;.`/ - ` : | |");
        System.out.println("     \\  \\ `-.   \\_ __\\ /__ _/   .-` /  /");
        System.out.println("======`-.____`-.___\\_____/___.-`____.-'======");
        System.out.println("                   `=---='");
        System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
        System.out.println("         佛祖保佑      永无BUG       永不宕机");
    }

    @Override//为了打包springboot项目
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }

}
